﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ElectronicRecords.Models.Clients>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%: Model.Firstname %> <%: Model.Lastname %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%: Model.Firstname %> <%: Model.Lastname %></h2>

    <fieldset>
        <legend>Просмотр</legend>
        <table>
        <tr>
        <td><div class="display-label">ID:</div></td>
        <td><div class="display-field"><%: Model.ID_Client %></div></td>
        </tr>
        <tr>
        <td><div class="display-label">Фамилия:</div></td>
        <td><div class="display-field"><%: Model.Firstname %></div></td>
        </tr>
        <tr>
        <td><div class="display-label">Имя:</div></td>
        <td><div class="display-field"><%: Model.Lastname %></div></td>
        </tr>
        <tr>
        <td><div class="display-label">Email:</div></td>
        <td><div class="display-field"><%: Model.Email %></div></td>
        </tr>
        <tr>
        <td><div class="display-label">Телефон:</div></td>
        <td><div class="display-field"><%: Model.Phone %></div></td>
        </tr>
        <tr>
        <td><div class="display-label">Дата создания:</div></td>
        <td><div class="display-field"><%: String.Format("{0:g}", Model.CreatedOn) %></div></td>
        </tr>
        <% if (Model.aspnet_Users != null)
           { %>
           <tr>
           <td><div class="display-label">Создан:</div></td>
           <td><div class="display-field"><%: Model.CreatedBy %></div></td>
           </tr>
        <%} %>

        </table>
          
    
        
        
        
       
        
        
    </fieldset>
    <p>

        <%: Html.ActionLink("Редактировать", "Edit", new { id=Model.ID_Client }, new {@class="g-button"}) %> &nbsp
        <%: Html.ActionLink("Удалить", "Delete", new { id=Model.ID_Client}, 
            new {@class="g-button", onclick="return confirm('Вы уверены?');"}) %> &nbsp
        <%: Html.ActionLink("Назад к списку", "List", new{} ,new {@class="g-button"}) %>
    </p>

</asp:Content>

